package org.cfx.gift.exception.code;

/**
 * 响应码枚举类
 */
public enum ResponseCode {
    RESPONSE_CODE_200(200,"操作成功!"),
    RESPONSE_CODE_400(400,"参数错误!"),
    RESPONSE_CODE_40001(40001,"请不要频繁发送验证码!"),
    RESPONSE_CODE_40002(40002,"该手机号已经被注册了!"),
    RESPONSE_CODE_40003(40003,"请获取验证码后,输入正确验证码!"),
    RESPONSE_CODE_500(500,"网络错误,请稍后再尝试!"),
    RESPONSE_CODE_40005(40005,"验证码错误！");

    private Integer code;

    private String message;

    ResponseCode() {
    }

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}